<div class="section">
    <?php
    echo $this->element('toolbar');
    ?>
    <?php
    echo $this->Form->create('Block', array('id' => 'paginate', 'action' => 'edit', 'url' => $this->request->here(false), 'type' => 'post',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));

    $fieldsets['title'] = $this->Form->input('title', array(
        'label' => __d('system', 'Title'),
        'type' => 'text'));
    $fieldsets['title'] .= $this->Html->div('colcomment', __d('system', 'The title of the block as shown to the user.'));

    $fieldsets['description'] = $this->Form->input('description', array(
        'label' => __d('system', 'Description'),
        'type' => 'text'));
    $fieldsets['description'] .= $this->Html->div('colcomment', __d('system', 'A brief description of your block. Used on the Blocks administration page.'));

    $fieldsets['content'] = $this->Form->input('content', array(
        'label' => __d('system', 'Content'),
        'type' => 'textarea'));
    $fieldsets['content'] .= $this->Html->div('colcomment', __d('system', 'The content of the block as shown to the user.'));

    $fieldsets['include'] = $this->Form->input('include', array(
        'label' => __d('system', 'Show block on specific pages'),
        'type' => 'textarea'));
    $fieldsets['include'] .= $this->Html->div('colcomment', __d('system', 'Specify pages by using their paths. Enter one path per line. The \'*\' character is a wildcard. Example paths are blog for the blog page and blog/* for every personal blog. <front> is the front page'));

    $fieldsets['exclude'] = $this->Form->input('exclude', array(
        'label' => __d('system', 'Hide block on specific pages'),
        'type' => 'textarea'));
    $fieldsets['exclude'] .= $this->Html->div('colcomment', __d('system', 'Specify pages by using their paths. Enter one path per line. The \'*\' character is a wildcard. Example paths are blog for the blog page and blog/* for every personal blog. <front> is the front page'));

    $fieldsets['publish'] = $this->Form->input('publish', array(
        'label' => __d('system', 'Publish block'),
        'options' => array(__d('system', 'No'), __d('system', 'Yes')),
        'type' => 'select'));

    $fieldsets['language'] = $this->Form->input('language', array(
        'label' => __d('system', 'Show block on specific language'),
        'multiple' => 'checkbox',
        'options' => $this->Layout->listLanguages(),
        'type' => 'select'));

    $fieldsets['role_id'] = $this->Form->input('Role', array(
        'label' => __d('system', 'Show block on specific roles'),
        'multiple' => 'checkbox',
        'options' => $roles,
        'type' => 'select'));
    ?>

    <div class="panel clearfix">
        <fieldset>
            <?php
            echo $this->Layout->form($_layouts, $fieldsets);
            ?>
        </fieldset>
    </div>
    <?php
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>
</div>